{/*
* @author PSI
* @copyright 2015 - present
* @license GPL v3
*/}
<layout name="layout" />

<script src="{$uri}Public/Scripts/PSI/Home/User/ParentOrgEditor.js?dt={$dtFlag}" type="text/javascript"></script>
<script src="{$uri}Public/Scripts/PSI/Home/User/OrgEditor.js?dt={$dtFlag}" type="text/javascript"></script>

<script src="{$uri}Public/Scripts/PSI/Home/User/MainForm.js?dt={$dtFlag}" type="text/javascript"></script>
<script src="{$uri}Public/Scripts/PSI/Home/User/OrgEditForm.js?dt={$dtFlag}" type="text/javascript"></script>
<script src="{$uri}Public/Scripts/PSI/Home/User/UserEditForm.js?dt={$dtFlag}" type="text/javascript"></script>
<script src="{$uri}Public/Scripts/PSI/Home/User/ChangeUserPasswordForm.js?dt={$dtFlag}" type="text/javascript"></script>

<script src="{$uri}Public/Scripts/PSI/SLN0000/SysDict/SysDictField.js?dt={$dtFlag}" type="text/javascript"></script>

<script>
  PCL.onReady(() => {
    const app = PCL.create("PSI.App", {
      userName: "{$loginUserName}",
      productionName: "{$productionName}",
      appHeaderInfo: {
        title: "{$title}"
      }
    });

    app.add(PCL.create("PSI.Home.User.MainForm", {
      pAddOrg: "{$pAddOrg}",
      pEditOrg: "{$pEditOrg}",
      pDeleteOrg: "{$pDeleteOrg}",
      pAddUser: "{$pAddUser}",
      pEditUser: "{$pEditUser}",
      pDeleteUser: "{$pDeleteUser}",
      pChangePassword: "{$pChangePassword}"
    }));
  });
</script>
